package com.xhwl.data.service;

import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.config.Form;
import com.xhwl.common.pojo.config.FormData;
import com.xhwl.common.query.FormQuery;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

/**
 * @Author: luyi
 * @Description: 表单配置
 * @Date: Create in 16:29 2021/5/20
 */
@FeignClient(name = "cent-sysconfig")
public interface IFormService {

    @RequestLine(value = "POST /form-service/create")
    ResultJson create(@Param("form") Form form);

    @RequestLine(value = "POST /form-service/list")
    List<Form> list(@Param("formQuery") FormQuery formQuery);

    @RequestLine(value = "POST /form-service/list-data")
    List<FormData> listFormData(@Param("formQuery") FormQuery formQuery);
}
